package com.hymjweb.demo.hymj.system_maintenance.user.bean;

import com.hymjweb.demo.framework.cache.bean.CachePojo;
import com.hymjweb.demo.framework.util.pojoContrast.FieldMeta;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class XtUserCachePojo extends CachePojo implements Serializable {

    @FieldMeta(columnname = "password", name = "登录密码")
    private String password;

    @FieldMeta(columnname = "password", name = "登录密码盐值")
    private String salt;

    @FieldMeta(columnname = "full_pinyin", name = "用户姓名全拼")
    private String fullPinyin;

    @FieldMeta(columnname = "camel_char_pinyin", name = "用户姓名首字母拼音大写")
    private String camelCharPinyin;

    @FieldMeta(columnname = "mobile", name = "手机号")
    private String mobile;

    @FieldMeta(columnname = "department_id", name = "归属部门ID", comment = "关联XT_DEPARTMENT.ID")
    private String departmentId;

    @FieldMeta(columnname = "id_card", name = "身份证号")
    private String idCard;

    @FieldMeta(columnname = "gender_id", name = "性别", comment = "关联xt_dic.id，key='XT_DIC_GENDER'")
    private Integer genderId;

    @FieldMeta(columnname = "address", name = "住址")
    private String address;

    @FieldMeta(columnname = "email_address", name = "电子邮箱")
    private String emailAddress;

    @FieldMeta(columnname = "qq", name = "QQ号")
    private String qq;

    @FieldMeta(columnname = "wx", name = "微信号")
    private String wx;

    @FieldMeta(columnname = "register_date", name = "入职日期,格式yyyyMMdd")
    private Date registerDate;

    @FieldMeta(columnname = "leave_date", name = "离职日期,格式yyyyMMdd")
    private Date leaveDate;

    @FieldMeta(columnname = "working_state_id", name = "在职状态", comment = "关联XT_DIC.ID，KEY='XT_DIC_WORKING_STATUS'")
    private Long workingStateId;

    @FieldMeta(columnname = "is_lock_id", name = "是否锁定", comment = "关联XT_DIC.ID，KEY='XT_DIC_YES_NO'")
    private Long isLockId;
}
